home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / communication / internet / amitcp3.0b / src.lha / src / amitcp / api / res_init.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  1.2 KB  |  50 lines

  1. RCS_ID_C="$Id: res_init.c,v 3.1 1994/04/02 11:06:28 jraja Exp $";
  2. /*
  3.  * Author: Tomi Ollila <too@cs.hut.fi>
  4.  *
  5.  * Copyright (c) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6.  *                    Helsinki University of Technology, Finland.
  7.  *                    All rights reserved.
  8.  *
  9.  * Created: Mon May 10 10:40:20 1993 too
  10.  * Last modified: Sat Apr  2 13:52:04 1994 jraja
  11.  *
  12.  * HISTORY
  13.  * $Log: res_init.c,v $
  14.  * Revision 3.1  1994/04/02  11:06:28  jraja
  15.  * Moved global resolver variables to SocketBase, removed res_lock.
  16.  *
  17.  * Revision 1.4  1994/01/20  02:16:05  jraja
  18.  * Added #include <conf.h> as the first include.
  19.  *
  20.  * Revision 1.3  1993/06/03  19:05:48  too
  21.  * Fixed global res_lock to be zero after compilation (for sure)
  22.  *
  23.  * Revision 1.2  1993/06/02  19:26:17  too
  24.  * Moved resolver stuff here from kern/ -directory
  25.  *
  26.  * Revision 1.1  1993/06/01  16:30:33  too
  27.  * Initial revision
  28.  *
  29.  */
  30.  
  31. #include <conf.h>
  32.  
  33. #include <sys/param.h>
  34. #include <kern/amiga_includes.h>
  35.  
  36. #include <api/resolv.h>
  37.  
  38. #ifndef AMITCP /* AmiTCP has this in the SocketBase */
  39. struct state _res;
  40. #endif
  41.  
  42. void
  43. res_init(struct state *state)
  44. {
  45.   state->retrans = RES_TIMEOUT;
  46.   state->retry   = 4;
  47.   state->options = RES_DEFAULT;
  48. }
  49.  
  50.